package cn.wolfcode.education.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
@ToString
public class Trace {

    // 跟进数据的状态
    public static final int STATUS_NOAUDIT = 0; // 未审核
    public static final int STATUS_AUDIT = 1; // 已审核

    private Long id; // 跟进客户数据编号

    private Client client; // 跟进客户

    private Employee traceEmployee; // 跟进人

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date traceDate; // 跟进时间

    private String traceAim; // 跟进后自我评价

    private Integer status = STATUS_NOAUDIT; // 跟进数据的状态,默认为未审核

    private String traceMatter; // 跟进交流的问题

    private String synopsis; // 跟进的内容总结摘要

    private SystemDictionaryItem assessLevel; // 审核评价等级

    private String auditAssess; // 审核评价

}